package com.string;

public class Test3 {
    public static void main(String[] args) {
        String s1= new String("Tom");
        String s2 = new String("tom");
        if(s1.equals(s2)){
            System.out.println("ture");
        }else{
            System.out.println("false");
        }
        if(s1.equalsIgnoreCase(s2)){//不考虑大小写
            System.out.println("ture");
        }else{
            System.out.println("false");
        }
    }


}
